package com.weiyuwqj.api.service;

import com.weiyuwqj.api.model.SysBranchCompany;
import com.weiyuwqj.api.model.SysUser;
import com.weiyuwqj.api.model.vo.UserVo;
import com.weiyuwqj.api.base.BaseService;
import com.weiyuwqj.api.common.PageList;
import com.weiyuwqj.api.common.Paginator;
import com.weiyuwqj.api.model.BusAccountBank;
import com.weiyuwqj.api.model.BusGuaranteeSecurity;
import com.weiyuwqj.api.model.vo.SysUserVo;

import java.util.List;
import java.util.Map;

/**
 * Created by lips on 2016/2/3.
 */
public interface SysUserService extends BaseService<SysUser> {

    //后台登录
    SysUser doLogin(String username, String password);

    //后台列表接口
    PageList getList(Paginator p, Map map);

    void insertUser(SysUser user, Integer character);

    List<SysUser> getList(Map map);

    //根据用户名查询
    SysUserVo getOneByUsername(String username);

    SysUser getUserByMobile(String mobile);

//    //担保人公司认证
//    Map guaranteeCertification(BusGuaranteeSecurity security);
//
//    //企业信息修改
//    Map updateEnterprise (BusGuaranteeSecurity security,BusAccountBank bank,String newBankCardNo,String bankCardName,String bizType);

}